package ly.gupao.edu.java8.Topic12;

import org.springframework.cglib.core.Local;

import java.time.LocalDate;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.TimeZone;

/**
 * @author: liyang
 * @date：2018/11/15 0015
 * describe：
 */
public class Date2 {

    public static void main(String[] args) {

        LocalDate localDate = LocalDate.now();
//        ZoneId romeZone = ZoneId.of("China/beijing");
        ZoneId zoneId = TimeZone.getDefault().toZoneId();
        ZonedDateTime zonedDateTime = localDate.atStartOfDay(zoneId);
        System.out.println(zonedDateTime);
    }

}
